<div id="categories">
  <h2><?php echo $catego; ?></h2>
  <?php
	if(isset($categories) && $categories != NULL){
		echo "<ul>";
		foreach($categories as $items){
			echo "<li><a href='".base_url().$segment."/".$items['cago_id']."/".$items['cago_rewrite'].".html'>".$items['cago_name']."</a></li>";
		}
		echo "</ul>";
	}
	?>
</div>
